package Decorator;

public class Cream extends Decorating {

    public Cream(IBirthdayCake birthdayCake) {
        super(birthdayCake);
    }

    public Cream(Decorating decoratingCake)
    {
        super(decoratingCake);
        this.decorating=decoratingCake.decorating;
    }

    public void putCream()
    {
        System.out.println("putting cream...");
        if(decorating.isEmpty())
            decorating += "cream";
        else
            decorating += ",cream";
    }

    @Override
    public void show() {
        System.out.println("cake with " + decorating);

    }
}
